@Override
  public PsiField @NotNull [] getApplicableFields(@NotNull PsiClass aClass) {
    if (aClass instanceof GrTypeDefinition) {
      return ((GrTypeDefinition)aClass).getCodeFields();
    }
    else {
      return aClass.getFields();
    }
  }
@Override
  public PsiField @NotNull [] getApplicableFields(@NotNull PsiClass aClass)