public static PsiClass @NotNull [] getInterfaces(GrTypeDefinition grType, boolean includeSynthetic) {
    final PsiClassType[] implementsListTypes = grType.getImplementsListTypes(includeSynthetic);
    List<PsiClass> result = new ArrayList<>(implementsListTypes.length);
    for (PsiClassType type : implementsListTypes) {
      final PsiClass psiClass = type.resolve();
      if (psiClass != null) result.add(psiClass);
    }
    return result.toArray(PsiClass.EMPTY_ARRAY);
  }
public static PsiClass @NotNull [] getInterfaces(GrTypeDefinition grType, boolean includeSynthetic)