private static boolean isJavaUsage(UsageInfo usage) {
    PsiElement e = usage.getElement();
    return e != null && e.getLanguage().is(JavaLanguage.INSTANCE);
  }
private static boolean isJavaUsage(UsageInfo usage)