package com.intellij.lang.ant.misc;

import com.intellij.util.containers.StringInterner;

public class AntStringInterner {

  private static final StringInterner ourInterner = new StringInterner();

  public static String intern(final String str) {
    synchronized(ourInterner) {
      return ourInterner.intern(str);
    }
  }

  private AntStringInterner() {
  }
}

package com.intellij.lang.ant.misc;

import com.intellij.util.containers.StringInterner;

public class AntStringInterner {

  private static final StringInterner ourInterner = new StringInterner();

  public static String intern(final String str) {
    return ourInterner.intern(str);
  }

  private AntStringInterner() {
  }
}

remove unneeded synchronized in AntStringInterner (there is already higher-level synchronization on the global PsiLock)