boolean (final PsiElement[] elements, @Nullable final PsiElement targetContainer, @Nullable PsiReference reference) { if (elements.length != 1) return false; PsiElement element = elements [0]; return isNonStaticInnerClass(element); }