public static String getPackageName(PackageWrapper aPackage) { if (aPackage == null) { return null; } String name = aPackage.getQualifiedName(); if (name.length() > 0) { return name; } else { return JavaFindUsagesProvider.DEFAULT_PACKAGE_NAME; } }
@Override public boolean canFindUsages(@NotNull final PsiElement element) { return new JavaFindUsagesProvider().canFindUsagesFor(element); }