Color (@Nullable PsiElement psi) { if (psi == null || !psi.isValid()) { return null; } Project project = psi.getProject(); return FilePresentationService.getInstance(project).getFileBackgroundColor(psi); }