@Override
        @SuppressWarnings({"SimplifiableIfStatement"})
        public boolean isAvailable(final @NotNull Project project, final @NotNull PsiElement context) {
          if (getContainer(context) instanceof PsiClass) return false;
          return super.isAvailable(project, context);
        }
@Override
        @SuppressWarnings({"SimplifiableIfStatement"})
        public boolean isAvailable(final @NotNull Project project, final @NotNull PsiElement context)