package com.cedricziel.idea.typo3.util;

import com.intellij.psi.PsiElement;

import java.util.Arrays;

import static com.cedricziel.idea.typo3.psi.PhpElementsUtil.extractArrayIndexFromValue;

public class TCAUtil {

    public static final String[] TCA_TABLE_FIELDS = {
            "foreign_table",
            "allowed",
    };

    public static boolean arrayIndexIsTCATableNameField(PsiElement element) {
        String arrayIndex = extractArrayIndexFromValue(element);

        return Arrays.asList(TCA_TABLE_FIELDS).contains(arrayIndex);
    }
}

@@ -95,16 +95,64 @@
 .Arrays;
+%0Aimport java.util.HashSet;%0Aimport java.util.Set;
 %0A%0Aimport
@@ -394,200 +394,1210 @@
 tic 
-boolean arrayIndexIsTCATableNameField(PsiElement element) %7B%0A        String arrayIndex = extractArrayIndexFromValue(element);%0A%0A        return Arrays.asList(TCA_TABLE_FIELDS).contains(arrayIndex
+final String%5B%5D TCA_CORE_TYPES = %7B%0A            %22flex%22,%0A            %22group%22,%0A            %22imageManipulation%22,%0A            %22input%22,%0A            %22inline%22,%0A            %22none%22,%0A            %22passthrough%22,%0A            %22radio%22,%0A            %22select%22,%0A            %22text%22,%0A            %22user%22,%0A    %7D;%0A%0A    public static final String%5B%5D TCA_CORE_RENDER_TYPES = %7B%0A            %22selectSingle%22,%0A            %22selectSingleBox%22,%0A            %22selectCheckBox%22,%0A            %22selectMultipleSideBySide%22,%0A            %22selectTree%22,%0A            %22colorpicker%22,%0A            %22inputDateTime%22,%0A            %22inputLink%22,%0A            %22rsaInput%22,%0A            %22belayoutwizard%22,%0A            %22t3editor%22,%0A            %22textTable%22,%0A    %7D;%0A%0A    public static boolean arrayIndexIsTCATableNameField(PsiElement element) %7B%0A        String arrayIndex = extractArrayIndexFromValue(element);%0A%0A        return Arrays.asList(TCA_TABLE_FIELDS).contains(arrayIndex);%0A    %7D%0A%0A    public static Set%3CString%3E getAvailableRenderTypes(PsiElement element) %7B%0A%0A        return new HashSet%3C%3E(Arrays.asList(TCA_CORE_RENDER_TYPES));%0A    %7D%0A%0A    public static Set%3CString%3E getAvailableColumnTypes(PsiElement element) %7B%0A%0A        return new HashSet%3C%3E(Arrays.asList(TCA_CORE_TYPES)
 );%0A 

Add core column types and renderTypes to TCA Util