@Override
    public @NotNull LocalQuickFix @Nullable [] getQuickFixes() {
      PsiPackage basePackage = null;
      if (myIndex != 0) {
        final ResolveResult resolveResult =
          ArrayUtil.getFirstElement(getReferenceSet().getReference(myIndex - 1).multiResolve(false));
        if (resolveResult != null) {
          basePackage = ObjectUtils.tryCast(resolveResult.getElement(), PsiPackage.class);
        }
      }

      final String qualifiedName = ElementManipulators.getValueText(getElement());
      final CreateClassOrPackageFix fix =
        CreateClassOrPackageFix.createFix(qualifiedName, myScope, getElement(), basePackage, null, null, null);

      return fix != null ? new CreateClassOrPackageFix[]{fix} : LocalQuickFix.EMPTY_ARRAY;
    }
@Override
    public @NotNull LocalQuickFix @Nullable [] getQuickFixes()